package com.whz.method;

import lombok.extern.slf4j.Slf4j;

import java.util.Objects;

/**
 * @Author: sinosoft
 * @Description:
 * @Date: Create in 9:53 2021/5/19
 * @Modified By:
 */
@Slf4j
public class Strategy {
//    private final String strategy;

    private Strategy() {
    }
    //    public Strategy(String strategy) {
//        this.strategy = Objects.requireNonNull(strategy, () -> {
//            throw new BusinessException("strategy不能为空");
//        });
//    }
//    public static Strategy create(String strategy) throws BusinessException{
//        Objects.requireNonNull(strategy, () -> {
//            throw new BusinessException("strategy不能为空");
//        });
//        return null;
//    }
    public static void method1(long[] a) {
        sort(a, 0, 0);
    }
    private static void sort(long[] a, int offset, int length) {
        assert a != null;
        log.info("a不为空");
    }
}
